import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store';
// import './directive';

import api from './api'
Vue.prototype.$api = api;

// 导入并向Vue原型挂载配置好的http（axios的二次封装文件）
import http from './api/index';
Vue.prototype.$http = http;


// 全局导入element-ui
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI);


Vue.config.productionTip = false

new Vue({
  el: '#app',
  router,
  store,
  render: h => h(App),
}).$mount('#app')